package com.glory.wxmemsicpda.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.glory.wxmemsicpda.R
import com.glory.wxmemsicpda.base.DataBindBaseViewHolder
import com.glory.wxmemsicpda.bean.StartLotBean
import com.glory.wxmemsicpda.databinding.AdapterMaterialsBinding

class MaterialsAdapter(data: List<StartLotBean.MESMATLISTBean?>?) : BaseQuickAdapter<StartLotBean.MESMATLISTBean?, DataBindBaseViewHolder>(
        R.layout.adapter_materials, data as MutableList<StartLotBean.MESMATLISTBean?>?
    ) {
    override fun convert(helper: DataBindBaseViewHolder, item: StartLotBean.MESMATLISTBean?) {
        val binding: AdapterMaterialsBinding = helper.getDataBinding() as AdapterMaterialsBinding
        binding.productBean = item
        binding.executePendingBindings()
    }
}